package cn.picclife.mwx.common.core.exception;

import cn.picclife.mwx.common.core.exception.BaseException;

/**
 * 用户模块异常
 */
public class UserException extends BaseException {

	private static final long serialVersionUID = 1L;
	
	/*登陆失败 */
	public static final int USER_LOGIN_FAILED_CODE = 20010001;
	public static final String USER_LOGIN_FAILED_MSG = "密码输入错误，请重新输入";
	/*注册失败 */
	public static final int USER_REGISTER_FAILED = 20010002;
	/*检查用户名失败 */
	public static final int USER_CHECKNAME_FAILED = 20010003;
	/*查询用户失败 */
	public static final int USER_QUERY_FAILED = 20010004;
	/*更新用户失败 */
	public static final int USER_UPDATE_FAILED = 20010005;
	
	/*调用电商登陆失败 */
	public static final int EBSUSER_LOGIN_FAILED_CODE = 30010001;
	/*调用电商注册失败 */
	public static final int EBSUSER_REGISTER_FAILED_CODE = 30010002;
	/*调用电商检查用户名失败 */
	public static final int EBSUSER_CHECKNAME_FAILED_CODE = 30010003;
	/*调用电商查询用户失败 */
	public static final int EBSUSER_QUERY_FAILED_CODE = 30010004;
	/*调用电商更新用户失败 */
	public static final int EBSUSER_UPDATE_FAILED_CODE = 30010005;
	/*调用电商修改用户口令失败 */
	public static final int EBSUSER_MODIFY_PWD_FAILED_CODE = 30010006;

	public UserException(int code, String msgFormat, Object... args) {
		super(code, msgFormat, args);
	}

	public UserException(int code, String msg) {
		super(code, msg);
	}
}
